
package editor.map.elements
{
	import flash.text.TextField;
	
	import flashx.textLayout.formats.TextAlign;

	/**
	 * @author 缺硒
	 */
	public class Teleport extends Npc
	{
		// 传送点描述
		private var _info:String;
		// 传送目的地id
		private var _toId:String;
		
		private var _label:TextField;
		
		// 构造函数
		public function Teleport(color:uint = 0xff0000)
		{
			this.graphics.beginFill(color,0.8);
			this.graphics.drawCircle(0,0,64);
			this.graphics.endFill();
			
			_label = new TextField();
			_label.x = -18;
			_label.y = 7;
			_label.selectable = false;
			_label.autoSize = TextAlign.LEFT;
			
			addChild(_label);
			
			super();
			removeChild(npcBmp);
		}
		

		public function set label(value:String):void
		{
			_label.text = value;
		}

		public function get info():String
		{
			return _info;
		}

		public function set info(value:String):void
		{
			_info = value;
		}

		public function get toId():String
		{
			return _toId;
		}

		public function set toId(value:String):void
		{
			_toId = value;
		}
		//
	}
}